﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DrawAGraph
{
    internal class Rectangle : Shape
    {
        public Rectangle(Color color) : base(color) { }

        public override void Draw()
        {
            using (SolidBrush brush = new SolidBrush(color))
            {
                Graphics g = Form1.ActiveForm.CreateGraphics();
                g.FillRectangle(brush, 150, 150, 60, 40);
            }
        }
    }
}
